package com.xwaf.platform.system.api.entity.pay.wx;

import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
public class WeiXinPayResData {

	// 协议层
	private String return_code = "";
	private String return_msg = "";
	// 协议返回的具体数据（以下字段在return_code 为SUCCESS 的时候有返回）
	private String appid = "";
	private String mch_id = "";
	private String nonce_str = "";
	private String sign = "";
	private String result_code = "";
	private String err_code = "";
	private String err_code_des = "";
	private String device_info = "";
	// 业务返回的具体数据（以下字段在return_code 和result_code 都为SUCCESS 的时候有返回）
	private String trade_type = "";
	private String prepay_id = "";
	private String code_url = "";

	public WeiXinPayResData setReturn_code(String return_code) {
		this.return_code = return_code;
		return this;
	}

	public WeiXinPayResData setReturn_msg(String return_msg) {
		this.return_msg = return_msg;
		return this;
	}

	public WeiXinPayResData setAppid(String appid) {
		this.appid = appid;
		return this;
	}

	public WeiXinPayResData setMch_id(String mch_id) {
		this.mch_id = mch_id;
		return this;
	}

	public WeiXinPayResData setNonce_str(String nonce_str) {
		this.nonce_str = nonce_str;
		return this;
	}

	public WeiXinPayResData setSign(String sign) {
		this.sign = sign;
		return this;
	}

	public WeiXinPayResData setResult_code(String result_code) {
		this.result_code = result_code;
		return this;
	}

	public WeiXinPayResData setErr_code(String err_code) {
		this.err_code = err_code;
		return this;
	}

	public WeiXinPayResData setErr_code_des(String err_code_des) {
		this.err_code_des = err_code_des;
		return this;
	}

	public WeiXinPayResData setDevice_info(String device_info) {
		this.device_info = device_info;
		return this;
	}

	public WeiXinPayResData setTrade_type(String trade_type) {
		this.trade_type = trade_type;
		return this;
	}

	public WeiXinPayResData setPrepay_id(String prepay_id) {
		this.prepay_id = prepay_id;
		return this;
	}

	public WeiXinPayResData setCode_url(String code_url) {
		this.code_url = code_url;
		return this;
	}
}
